home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / encodings / hz.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  1KB  |  39 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. import _codecs_cn
  5. import codecs
  6. codec = _codecs_cn.getcodec('hz')
  7.  
  8. class Codec(codecs.Codec):
  9.     encode = codec.encode
  10.     decode = codec.decode
  11.  
  12.  
  13. class StreamReader(Codec, codecs.StreamReader):
  14.     
  15.     def __init__(self, stream, errors = 'strict'):
  16.         codecs.StreamReader.__init__(self, stream, errors)
  17.         _StreamReader__codec = codec.StreamReader(stream, errors)
  18.         self.read = _StreamReader__codec.read
  19.         self.readline = _StreamReader__codec.readline
  20.         self.readlines = _StreamReader__codec.readlines
  21.         self.reset = _StreamReader__codec.reset
  22.  
  23.  
  24.  
  25. class StreamWriter(Codec, codecs.StreamWriter):
  26.     
  27.     def __init__(self, stream, errors = 'strict'):
  28.         codecs.StreamWriter.__init__(self, stream, errors)
  29.         _StreamWriter__codec = codec.StreamWriter(stream, errors)
  30.         self.write = _StreamWriter__codec.write
  31.         self.writelines = _StreamWriter__codec.writelines
  32.         self.reset = _StreamWriter__codec.reset
  33.  
  34.  
  35.  
  36. def getregentry():
  37.     return (codec.encode, codec.decode, StreamReader, StreamWriter)
  38.  
  39.